package com.shop.front.property;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author Administrator
 * @Date 2023/9/6 10:44
 * @Version 1.0
 */
@Data
@Component
public class StaticConstProps {

    /**
     * 短信appId
     */
    public static String smsAppId;

    /**
     * 短信秘钥
     */
    public static String smsAppKey;

    /**
     * 短信模板
     */
    public static String smsTemplateId;

    /**
     * 短信签名
     */
    public static String smsSign;


    /**
     * 腾讯秘钥Id
     */
    public static String secretId;

    /**
     * 腾讯秘钥
     */
    public static String secretKey;

    /**
     * 微信APPID
     */
    public static String wxAppId;

    /**
     * 微信APPID
     */
    public static String wxAppSecret;

    /**
     * 微信商户Id
     */
    public static String wxMchId;

    /**
     * 微信秘钥
     */
    public static String wxMchIdKey;

    /**
     * 终端Ip
     */
    public static String wxSpbillCreateIp;

    /**
     * 微信支付回调
     */
    public static String wxNotifyUrl;

    /**
     * 支付宝APPID
     */
    public static String aliAppId;

    /**
     * 支付宝私钥
     */
    public static String aliprivateKey;

    /**
     * 支付宝公钥
     */
    public static String alipublicKey;

    /**
     * 支付宝回调
     */
    public static String alipayNotifyUrl;

    /**
     * 应用名称
     */
    public static String procedure;

    /**
     * 充值描述
     */
    public static String payDescribe;

    @Value("${com.shop.sms.appId}")
    public void setSmsAppId(String smsAppId) {
        this.smsAppId = smsAppId;
    }

    @Value("${com.shop.sms.appKey}")
    public void setSmsAppKey(String smsAppKey) {
        StaticConstProps.smsAppKey = smsAppKey;
    }

    @Value("${com.shop.sms.templateId}")
    public void setSmsTemplateId(String smsTemplateId) {
        StaticConstProps.smsTemplateId = smsTemplateId;
    }

    @Value("${com.shop.sms.smsSign}")
    public void setSmsSign(String smsSign) {
        StaticConstProps.smsSign = smsSign;
    }

    @Value("${com.shop.wxpay.appId}")
    public void setWxAppId(String wxAppId) {
        StaticConstProps.wxAppId = wxAppId;
    }

    @Value("${com.shop.wxpay.mchid}")
    public void setWxMchId(String wxMchId) {
        StaticConstProps.wxMchId = wxMchId;
    }

    @Value("${com.shop.wxpay.mchidKey}")
    public void setWxMchIdKey(String wxMchIdKey) {
        StaticConstProps.wxMchIdKey = wxMchIdKey;
    }

    @Value("${com.shop.wxpay.spbillCreateIp}")
    public void setWxSpbillCreateIp(String wxSpbillCreateIp) {
        StaticConstProps.wxSpbillCreateIp = wxSpbillCreateIp;
    }

    @Value("${com.shop.wxpay.wxNotifyUrl}")
    public void setWxNotifyUrl(String wxNotifyUrl) {
        StaticConstProps.wxNotifyUrl = wxNotifyUrl;
    }

    @Value("${com.shop.alipay.appId}")
    public void setAliAppId(String aliAppId) {
        StaticConstProps.aliAppId = aliAppId;
    }

    @Value("${com.shop.alipay.privateKey}")
    public void setAliprivateKey(String aliprivateKey) {
        StaticConstProps.aliprivateKey = aliprivateKey;
    }

    @Value("${com.shop.procedure}")
    public void setProcedure(String procedure) {
        StaticConstProps.procedure = procedure;
    }

    @Value("${com.shop.payDescribe}")
    public void setPayDescribe(String payDescribe) {
        StaticConstProps.payDescribe = payDescribe;
    }

    @Value("${com.shop.alipay.publicKey}")
    public void setAlipublicKey(String alipublicKey) {
        StaticConstProps.alipublicKey = alipublicKey;
    }

    @Value("${com.shop.alipay.alipayNotifyUrl}")
    public void setAlipayNotifyUrl(String alipayNotifyUrl) {
        StaticConstProps.alipayNotifyUrl = alipayNotifyUrl;
    }

    @Value("${com.shop.wxpay.appSecret}")
    public void setWxAppSecret(String wxAppSecret) {
        StaticConstProps.wxAppSecret = wxAppSecret;
    }

    @Value("${com.shop.tencent.secretId}")
    public void setSecretId(String secretId) {
        StaticConstProps.secretId = secretId;
    }

    @Value("${com.shop.tencent.secretKey}")
    public void setSecretKey(String secretKey) {
        StaticConstProps.secretKey = secretKey;
    }

}
